package Frame;

import java.awt.Dimension;

import javax.swing.ImageIcon;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.SwingConstants;

public class OverPanel extends JPanel{
	OverPanel(){		
		setLayout(null);
		setPreferredSize(new Dimension(1300, 650));
        setVisible(false);
        
		ImageIcon img_background = new ImageIcon("images/gameover.png");
		JLabel lab_bg = new JLabel("", img_background,SwingConstants.CENTER);
		
		/** Background Image**/
		lab_bg.setSize(1300,650);
		lab_bg.setLocation(0,0);

		/** Add Objects in Panel**/
		setSize(1300,700);
		add(lab_bg);
	}
	void setVisible(){
		setVisible(true);
		requestFocus();
	}
}